package com.youpai.platform.common.exceptions;


import com.youpai.platform.vulture.service.channel.VultureChannel;

import java.net.InetSocketAddress;

/**
 * @time: 2021/8/19 1:45 下午
 * @author: welles
 * @description: 业务异常
 */
public class RemoteException extends Exception {

    private static final long serialVersionUID = 1974528754028822755L;

    private InetSocketAddress localAddress;

    private InetSocketAddress remoteAddress;

    public RemoteException(VultureChannel vultureChannel, String msg) {
        super("[localAddress:" + vultureChannel.getChannel().localAddress()
                + " remoteAddress:" + vultureChannel.getChannel().remoteAddress() + msg);
    }
}
